<template>
  <div class="weather">
    <el-row>
      <el-col :span="12">
        <el-select v-model="value" placeholder="请选择">
          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
        </el-select>
      </el-col>
      <el-col :span="12">
        <el-button @click="forecastDrawer = true;historyDrawer = false">预测</el-button>
        <el-button @click="historyDrawer = true;forecastDrawer = false">历史</el-button>
        <el-button>列表</el-button>
      </el-col>
    </el-row>
   
    <!-- 预测弹窗 -->
    <div class="forecast" v-show="forecastDrawer">aaaaa</div>
    <div class="history" v-show="historyDrawer">bbbbb</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      forecastDrawer: false,
      historyDrawer: false,
      options: [
        {
          value: "选项1",
          label: "黄金糕"
        },
        {
          value: "选项2",
          label: "双皮奶"
        },
        {
          value: "选项3",
          label: "蚵仔煎"
        },
        {
          value: "选项4",
          label: "龙须面"
        },
        {
          value: "选项5",
          label: "北京烤鸭"
        }
      ],
      value: ""
    };
  },
  computed:{
    drawerState(){
      return this.openDrawer
    }
  }
};
</script>

<style>
.weather{
  width: 100%;
  height: 100%;
  position: relative;
}
.forecast{
  width: 200px;
  height: 100%;
  right: 0;
  top:0;
}
.history{
  width: 100%;
  height:200px;
  bottom: 0;
  left: 0;
}
.forecast,.history{
  background:  #132E40;
  position: absolute;
  color: #7B8892
}
</style>